package com.xxx.host;
import com.tencentcloudapi.common.Credential;
import com.tencentcloudapi.common.profile.ClientProfile;
import com.tencentcloudapi.common.profile.HttpProfile;
import com.tencentcloudapi.common.exception.TencentCloudSDKException;

import com.tencentcloudapi.yunjing.v20180228.YunjingClient;

import com.tencentcloudapi.yunjing.v20180228.models.DescribeVulScanResultRequest;
import com.tencentcloudapi.yunjing.v20180228.models.DescribeVulScanResultResponse;

public class DescribeVulScanResult//获取漏洞检测结果
{
    public static void main(String [] args) {
        try{

            Credential cred = new Credential("AKID84pKiq1WQ4SaS4z4V5QZT93nHVUPLzOD", "Yx6zd190CDzaFfspQfw22oM5dvyreC9J");
            
            HttpProfile httpProfile = new HttpProfile();
            httpProfile.setEndpoint("yunjing.tencentcloudapi.com");

            ClientProfile clientProfile = new ClientProfile();
            clientProfile.setHttpProfile(httpProfile);            
            
            YunjingClient client = new YunjingClient(cred, "ap-chengdu", clientProfile);
            
            String params = "{}";
            DescribeVulScanResultRequest req = DescribeVulScanResultRequest.fromJsonString(params, DescribeVulScanResultRequest.class);
            
            DescribeVulScanResultResponse resp = client.DescribeVulScanResult(req);
            
            System.out.println(DescribeVulScanResultRequest.toJsonString(resp));
        } catch (TencentCloudSDKException e) {
                System.out.println(e.toString());
        }

    }
    
}